package com.dexin.rabbitmq;

import com.dexin.rabbitmq.service.SendService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringbootSendApplication {

    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SpringbootSendApplication.class, args);
        SendService sendService = (SendService) context.getBean("sendService");
        sendService.send();
    }

}
